package org.example.mallweb.mallservice.mybatiscommon.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.Orders;
import org.example.mallcommon.vio.OrderItemsVio;

import java.util.List;

/**
 * @author 韩先楚
 */
public interface OrderMapper extends BaseMapper<Orders> {
    /**
     *获取全部订单信息
     */
    List<OrderItemsVio> selectAllOrders(@Param("userId") Integer userId, @Param("orderStatus") Integer orderStatus);

    /**
     * 获取待发货订单信息
     */
    List<OrderItemsVio> selectWaitSendOrders(@Param("userId") Integer userId);
}
